package com.xyh;

import feign.Feign;
import feign.gson.GsonEncoder;

public class JsonTest {
    public static void main(String[] args){
       HelloClient client=Feign.builder().encoder(new GsonEncoder()).target(HelloClient.class,"http://localhost:8080");
        Person person=new Person();
        person.setAge(33);
        person.setId(1);
        person.setName("angus");
         String  result = client.createPerson(person);
         System.out.println(result);
    }
}
